<link rel="stylesheet" href="media/js/jquery.treeview/jquery.treeview.css" type="text/css" media="screen" />
<script type="text/javascript" src="media/js/jquery.treeview/jquery.treeview.js"></script>
<script type="text/javascript">
	$(function(){
		$(".tree").treeview();
	})
</script>
<div class="box">
	<h1 class="orange">
		<img src="themes/default/images/icon/work.png" />
		<span>Sitemap</span>
		
		<div class="corner_left"></div>
		<div class="corner_right"></div>
	</h1>
	<div class="view">
		<ul class="tree">

			<?php foreach($categories as $category): ?>
			<li><a href="contents/index/<?php echo $category->id ?>"><?php echo lang_decode($category->name) ?></a>
				<?php get_sitemap($category) ?>
			</li>
			<?php endforeach; ?>
			<li><a href="albums">ภาพกิจกรรม</a></li>
			<li><a href="webboard">กระดานสนทนา</a></li>
		</ul>
	</div>
</div>
